<template>
	<div id="test_render">
		test_render:
		<div><tb-header :level="2" ></tb-header></div>
	</div>
</template>

<script type="text/javascript">
  import Vue from 'vue'
	Vue.component('tb-header', {
	  render: function (createElement) {
	    // return createElement(
	    //   'h' + this.level,   // tag name 标签名称
	    //   this.$slots.default // 子组件中的阵列
	    // )
	    return createElement(
	      'input',   // tag name 标签名称
	      {'class':{foo:!0}}, // 子组件中的阵列
	      ['jjj','ccc']
	    )
	  },
	  props: {
	    level: {
	      type: Number,
	      required: true
	    }
	  },
	  mounted:function(){
	  	console.log(this.$slots)
	  }
	});

	export default {
		name:"test-render"
	}
</script>